#ifndef __TEXT_H
#define __TEXT_H

#include "./TEXT/fonts.h"
#include "./TEXT/charset_convert.h"

/* 字符集定义 */
/* 以下两个宏定义只可解除其中一个的注释 */
#define LCD_CHARSET_UTF8            /* 定义字符集为UTF8 */
//#define LCD_CHARSET_GB2312        /* 定义字符集为GB2312 */

/* 接口函数声明 */
void text_show_font(uint16_t x, uint16_t y, uint8_t *font, uint8_t size, uint8_t mode, uint16_t color);
void text_show_font_utf8(uint16_t x, uint16_t y, uint8_t *font, uint8_t size, uint8_t mode, uint16_t color);
void text_show_string(uint16_t x, uint16_t y, uint16_t width, uint16_t height, char *str, uint8_t size, uint8_t mode, uint16_t color);
void text_show_string_middle(uint16_t x, uint16_t y, char *str, uint8_t size, uint16_t width, uint16_t color);
void text_show_menu_item(uint16_t x, uint16_t y, char *str, uint8_t size, uint16_t textColor, uint16_t bgColor);
void text_utf8_display_test(void);

#endif
